﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;

namespace BasicMVVMCommand
{
    public class UserLogin : INotifyPropertyChanged 
    {
        private string _login;

        public string Login
        {
            get { return _login; }
            set { _login = value;
            OnPropertyChanged("Login"); 
            }
        }
        private string _password;

        public string Password
        {
            get { return _password; }
            set { _password = value;
                OnPropertyChanged("Password"); 
            }
        }


        protected void OnPropertyChanged(string name)
        {
            PropertyChangedEventHandler ph = this.PropertyChanged;
            if (ph != null)
            {
                ph(this, new PropertyChangedEventArgs(name)); 
            } 
        } 

    
#region INotifyPropertyChanged Members

public event PropertyChangedEventHandler  PropertyChanged;

#endregion
}
}
